/*
 * @Author: wwssaabb
 * @Date: 2021-07-22 09:29:18
 * @LastEditTime: 2021-07-22 15:18:00
 * @FilePath: \demo\react_demo\react_stagin_demo\src\App.jsx
 */
import React, { Component } from 'react'
//import axios from 'axios'

import Header from './component/Header/Header'
import List from './component/List/List'
import './App.css'

export default class App extends Component {
  state={
    list:[],
    isFirst:true,
    isLoading:false,
    err:'',
  }

  updateAppState=(obj)=>{
    this.setState({...obj})
  }

  render() {
    const { isFirst } = this.state
    return (
      <div className="container">
        <Header isFirst={isFirst} updateAppState={this.updateAppState}/>
        <List {...this.state}/>
      </div>
    )
  }
}
